#include "StdAfx.h"
#include "StaffSalary.h"

CStaffSalary::CStaffSalary(void)
{
}

CStaffSalary::~CStaffSalary(void)
{
}

BOOL CStaffSalary::SetSalaries(int iBasic, int iAdditional, int iBonus, int iEtc){
	additionalSalary = iAdditional;
	basicSalary = iBasic;
	bonus = iBonus;
	etc = iEtc;	
	
	return TRUE;
}
BOOL CStaffSalary::SetTaxes(int income, int residence, int insuranceFee){
	incomeTax = income;
	residenceTax = residence;
	insurance = insuranceFee;
	
	return TRUE;
}
int  CStaffSalary::GetTotalSalary(){
	return GetOnlySalary() - GetOnlyTaxes();	
}
int  CStaffSalary::GetOnlySalary(){
	return additionalSalary + basicSalary + bonus + etc;
}
int  CStaffSalary::GetOnlyTaxes(){
	return incomeTax + residenceTax + insurance;
}